package com.zxbg.controller.proportalController;

import com.zxbg.controller.Code;
import com.zxbg.controller.Result;
import com.zxbg.service.proportalService.PersonalCenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/personalCenter")
public class PersonalCenterController {
    @Autowired
    PersonalCenterService personalCenterService;

    @PutMapping
    public Result resetAvatar(@RequestHeader String employee_id, @RequestHeader Integer tenant_id) {
        return new Result(Code.UPDATE_OK, personalCenterService.resetAvatar(employee_id, tenant_id));
    }

    @PostMapping
    public Result getFullPathDept(@RequestBody String all_dept_id) {
        return new Result(Code.GET_OK, personalCenterService.getFullPathDept(all_dept_id));
    }
}
